package com.konke.smartpad_huahao.UI.model;

import com.sds.sdk.android.sh.model.ZigbeeNumSensorStatus;

public class SmartRoom {
    private int roomId;
    private String roomName;
    private String enRoomName;
    private int lightSize;
    private double temp = ZigbeeNumSensorStatus.UNKNOWN_VAULE;
    private double humi =ZigbeeNumSensorStatus.UNKNOWN_VAULE;
    private boolean isShow;
    private boolean doorOpen;
    private boolean hasPerson;
    private boolean hasCamera;
    private boolean smork;
    private boolean water;
    private int floorIndex;

    public SmartRoom() {
    }

    public SmartRoom(int roomId) {
        this.roomId = roomId;
    }

    public SmartRoom(int roomId, String roomName, String enRoomName) {
        this.roomId = roomId;
        this.roomName = roomName;
        this.enRoomName = enRoomName;
    }

    public int getRoomId() {
        return roomId;
    }

    public void setRoomId(int roomId) {
        this.roomId = roomId;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getEnRoomName() {
        return enRoomName;
    }

    public void setEnRoomName(String enRoomName) {
        this.enRoomName = enRoomName;
    }

    public int getLightSize() {
        return lightSize;
    }

    public void setLightSize(int lightSize) {
        this.lightSize = lightSize;
    }

    public double getTemp() {
        return temp;
    }

    public void setTemp(double temp) {
        this.temp = temp;
    }

    public double getHumi() {
        return humi;
    }

    public void setHumi(double humi) {
        this.humi = humi;
    }

    public boolean isShow() {
        return isShow;
    }

    public void setShow(boolean show) {
        isShow = show;
    }

    public boolean isDoorOpen() {
        return doorOpen;
    }

    public void setDoorOpen(boolean doorOpen) {
        this.doorOpen = doorOpen;
    }

    public boolean isHasPerson() {
        return hasPerson;
    }

    public void setHasPerson(boolean hasPerson) {
        this.hasPerson = hasPerson;
    }

    public int getFloorIndex() {
        return floorIndex;
    }

    public void setFloorIndex(int floorIndex) {
        this.floorIndex = floorIndex;
    }

    public boolean isHasCamera() {
        return hasCamera;
    }

    public void setHasCamera(boolean hasCamera) {
        this.hasCamera = hasCamera;
    }

    public boolean isSmork() {
        return smork;
    }

    public void setSmork(boolean smork) {
        this.smork = smork;
    }

    public boolean isWater() {
        return water;
    }

    public void setWater(boolean water) {
        this.water = water;
    }

    @Override
    public boolean equals( Object obj) {
        if (obj instanceof SmartRoom) {
            if (((SmartRoom) obj).getRoomId() == this.roomId) {
                return true;
            }
        }
        return super.equals(obj);
    }
}
